package com.example.jpa.repository;

import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.NoRepositoryBean;

import java.util.List;

/**
 * Created by rajeevkumarsingh on 20/11/17.
 */
@NoRepositoryBean
public interface MIddleRepository<T, ID> extends JpaRepository<T, ID>{
    void deleteByName(String name);
    List<T> findAll();
    List<T> findAll(Sort sort);

}
